<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="hello world example" />
<Content type="html"><![CDATA[
<div class="fv">
  FV
</div>

<script src="http://www.google.com/jsapi"></script>
<script>
// Load jQuery
google.load("jquery", "1.3.1");

function getHtml() {    
  var params = {};  
  params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.TEXT;  
  var url = "http://www.google.com";  
  gadgets.io.makeRequest(url, response, params);
};
function response(obj) {  
  //obj.text contains the text of the page that was requested  
  var str = obj.text;
  var html =  str.substr(0,400);  
  //document.getElementById('content_div').innerHTML = html;
  alert("ph - yeah -- " + html);
};
gadgets.util.registerOnLoadHandler(getHtml);
/*
// on page load complete, fire off a jQuery json-p query
// against Google web search
 google.setOnLoadCallback(function() {
  alert("onload callback");
  //$(".fv").html("New HTML");
  //$(".fv").load("http://www.politifact.com/truth-o-meter/statements/index.html");
  //$.get("http://www.politifact.com/truth-o-meter/statements/", function(data) {
  $.get("http://www.google.com", function(data) {
    alert(data);
  });
  
}); // google.setOnLoadCallback
*/
</script>
Hello, world!
]]>

</Content>
</Module>
